package hbec.kettle.etl.common.plugin;

import org.pentaho.di.core.exception.KettleMissingPluginsException;
import org.pentaho.di.core.exception.KettleXMLException;
import org.pentaho.di.job.Job;
import org.pentaho.di.job.JobMeta;
import org.pentaho.di.repository.Repository;
import org.pentaho.di.trans.Trans;
import org.pentaho.di.trans.TransMeta;

public class MetaData {
	
	public static TransMeta getTransMeta(String fname) throws KettleXMLException, KettleMissingPluginsException {
		return new TransMeta(fname);
	}
	
	public static Trans getTrans(TransMeta transMeta) {
		return new Trans(transMeta);
	}
	
	public static JobMeta getJobMeta(String fname, Repository rep) throws KettleXMLException {
		return new JobMeta(fname, rep);
	}
	
	public static Job getJob(Repository rep, JobMeta jobMeta) {
		return new Job(rep, jobMeta);
	}
}
